home *** CD-ROM | disk | FTP | other *** search
- class CFieldHost extends MovieClip
- {
- var _field;
- function CFieldHost()
- {
- super();
- this._visible = false;
- this.stop();
- }
- function PlayAppear()
- {
- this._visible = true;
- FreshDebug.Trace("PlayAppear");
- this.gotoAndPlay("appear");
- }
- function OnAppearDone()
- {
- FreshDebug.Trace("OnAppearDone");
- this._field.SetInteractive(true);
- this.stop();
- }
- function PlayDisappear()
- {
- FreshDebug.Trace("PlayDisappear");
- this._field.SetInteractive(false);
- this.gotoAndPlay("disappear");
- }
- function OnDisappearDone()
- {
- FreshDebug.Trace("OnDisappearDone");
- _root._game.KillFieldHost(this);
- this.stop();
- this.removeMovieClip();
- }
- }
-